package com.vpa.main;

public class PID_Entry implements Comparable<PID_Entry> {

	private String label;
	private int pid;
	private double min_val;
	private double max_val;
	private boolean dynamic;
	private String unit;

	public PID_Entry(int pid,String label, double min, double max, boolean dynamic, String unit){
		this.pid = pid;
		this.label = label;
		this.min_val = min;
		this.max_val = max;
		this.dynamic = dynamic;
		this.unit = unit;
	}

	public int getPid(){
		return this.pid;
	}
	
	@Override 
	public String toString(){
		return this.label;
	}
	
	@Override
	public int compareTo(PID_Entry arg0) {
		return label.compareTo(arg0.label);
	}
	
	public String getLabel(){
		return label;
	}
	
	public boolean getDynamic(){
		return dynamic;
	}
	
	public double getMin(){
		return min_val;
	}
	
	public double getMax(){
		return max_val;
	}
	
	public String getUnit(){
		return unit;
	}
}
